package com.cheers.common;

public class Constants {
	
	// 活动获奖者 ///////////////////////////////////////
	public static final String LOTTERY_CODE = "16";
	public static final String LOTTERY_DESC = "幸运活动尚未揭晓";
	
	// 幸运活动 ///////////////////////////////////////
	public static final String LUCK_CODE = "13";
	public static final String LUCK_DESC = "幸运活动不存在";
	public static final String LUCKCGYID_DESC = "活动类别ID不能为空";
	public static final String LUCKID_DESC = "幸运活动ID不能为空";
	public static final String LUCK_NUM_DESC = "次数应为正整数";
	public static final String LUCK_PHASENUM_DESC = "期数应为正整数";
	public static final String LUCK_FULL_CODE = "14";
	public static final String LUCK_FULL_DESC = "参加人数已满";
	public static final String LUCK_NOT_CODE = "15";
	public static final String LUCK_NOT_DESC = "剩余人次只为:";
	
	// 商品 ///////////////////////////////////////
	public static final String PRODUCT_CODE = "11";
	public static final String PRODUCT_NOT_CODE = "18";
	public static final String PRODUCT_FULL_CODE = "17";
	public static final String PRODUCT_NOT_DESC = "剩余数量只为:";
	public static final String PRODUCT_FULL_DESC = "已被抢完";
	public static final String PRODUCT_DESC = "商品不存在";
	public static final String PRODUCTID_DESC = "商品ID不能为空";
	
	// 积分 ///////////////////////////////////////
	public static final String POINT_TOTAL_CODE = "12";
	public static final String POINT_TOTAL_DESC = "总积分不足";
	public static final String POINT_NUM_DESC = "积分应为正整数";
	public static final String POINT_CHANNEL_DESC = "渠道无效";
	
	// 用户 ///////////////////////////////////////
	public static final String USERID_DESC = "用户ID不能为空";
	public static final String REALNAME_DESC = "真实姓名不能为空";
	public static final String USERNAME_DESC = "用户名不能为空";
	public static final String EMAIL_DESC = "邮箱地址不能为空";
	public static final String PASSWOR_DESC = "密码不能为空";
	public static final String MOBILE_DESC = "手机号码不能为空";
	public static final String MOBILE_INVALID_DESC = "手机号码无效";
	public static final String INVALID_DESC = "验证未通过";
	
	public static final String USER_CODE = "10";
	public static final String USER_DESC = "不存在该用户";
	public static final String PAGE_NUM_DESC = "页码应为正整数";


	// redis key ///////////////////////////////////////
	public static final String INTEGRAL_ALL = "integral_all";
	
	
	// redis 配置 ///////////////////////////////////////
	public static final String databaseName = "ltYzZEbfTvGTTMwpCKkI";
	public static final String host = "redis.duapp.com";
	public static final int port = 80;
	public static final String username = "NMxW3nmd81ZjXm5kL45i1Gdl";// 用户名(api key);
	public static final String password = "IIGtNR3QXNTMMisRQzVgAbmQf69j2Ccm";// 密码(secret key)
	
	public static final String DATE_FORMAT_FULL = "yyyy-MM-dd HH:mm:ss";
	public static final String DATE_FORMAT_YMD = "yyyy-MM-dd";
	public static final String CODE = "code";
	public static final String DESC = "desc";

	public static final String SEPARATION = "--------------------";
	// 操作成功
	public static final String OK = "0";
	public static final String OK_DESC = "操作成功";
	// 操作失败
	public static final String NO = "1";
	public static final String NO_DESC = "操作失败";
	// 每页多少条
	public static final int PAGESIZE = 25;
	// 总条数属性
	public static final String TOTAL = "total";
	
	// 渠道  ///////////////////////////////////////
	public static final String DECREASE_LUCK = "decrease_luck";
	public static final String DECREASE_BUY = "decrease_buy";
	
	public static final String CHANNEL_YOUMI = "youmi";
	public static final String CHANNEL_DIANLE  = "dianle";

}
